package cn.hxy.bladeframework.service.impl;

import cn.hxy.bladeframework.dao.UserDao;
import cn.hxy.bladeframework.model.UserModel;
import cn.hxy.bladeframework.service.UserService;
import com.blade.ioc.annotation.Bean;
import com.blade.ioc.annotation.Inject;

@Bean
public class UserServiceImpl implements UserService {
    @Inject
    UserDao userDao;

    @Override
    public String sayHi() {


        return "Hi blade";
    }

    @Override
    public UserModel getUser(int id){
        UserModel user = userDao.getUser(id);
        return user;
    }
}
